package com.yunhe.sms.control;

import com.yunhe.sms.view.AdminHome;
import com.yunhe.sms.view.TeacherHome;

/**
 * Created by Administrator on 2017/8/9 0009.
 */
public class TeacherHomeController implements HomeController{
    private static TeacherHomeController instance;
    private TeacherHomeController(){}
    public static TeacherHomeController getInstance(){
        if (instance==null)
            instance = new TeacherHomeController();
        return instance;
    }
    public void homeRoute(){
        int i = TeacherHome.teacherHomeUI();  //展示主页面，并获得操作码
        switch (i) {
            case 1:StudentController.studentControllerRoute();break;
            case 2:PasswordController.passwordRoute();break;
            case 3: LoginController.logout();break;  //退出
        }
    }
}
